package com.cq.androidtools.recycleview.table

import com.cq.androidtools.recycleview.base.BaseViewHolder

/**
 * 作者: CQ
 * 日期: 2021-08-11
 * 说明:
 */
fun <T : CloneBean> List<T>.copyList(): MutableList<T> {
    val list = mutableListOf<T>()
    this.forEach {
        list.add(it.onCopy() as T)
    }
    return list
}

fun BaseViewHolder.getDoubleClickText(viewId: Int): DoubleClickText {
    return getView(viewId) as DoubleClickText
}